<?php

namespace App\Http\Controllers\OpenShop\Merchant;

use App\Http\Controllers\BaseController;
use App\Service\OpenShop\Feishu\ExpressService;
use Illuminate\Http\Request;

class ExpressController extends BaseController
{
    public function express(Request $request)
    {
        $this->validate($request, [
            'nu'          => 'required|string',
            'company'     => 'required|string',
        ]);
        $nu = $request->nu;
        $company = $request->company;
        return $this->success(ExpressService::getUrlByCompanyCode($nu, $company));
    }
}
